home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / sun4.md / mmalloc / Makefile < prev    next >
Encoding:
Makefile  |  1992-06-30  |  3.8 KB  |  182 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. host_alias = sun4
  3. host_cpu = sparc
  4. host_vendor = sun
  5. host_os = sunos411
  6. target_alias = sun4
  7. target_cpu = sparc
  8. target_vendor = sun
  9. target_os = sunos411
  10. target_makefile_frag = 
  11. host_makefile_frag = ./config/mh-sunos4
  12. site_makefile_frag = 
  13. links = 
  14. VPATH = .
  15. ALL=all.internal
  16. #
  17. # Makefile
  18. #   Copyright (C) 1992 Cygnus Support
  19. #
  20. # This file is free software; you can redistribute it and/or modify
  21. # it under the terms of the GNU General Public License as published by
  22. # the Free Software Foundation; either version 2 of the License, or
  23. # (at your option) any later version.
  24. # This program is distributed in the hope that it will be useful,
  25. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. # GNU General Public License for more details.
  28. # You should have received a copy of the GNU General Public License
  29. # along with this program; if not, write to the Free Software
  30. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  31. #
  32.  
  33. #
  34. # Makefile for mmalloc directory
  35. #
  36.  
  37. # Directory containing source files.  Don't clean up the spacing,
  38. # this exact string is matched for by the "configure" script.
  39. srcdir = .
  40.  
  41. prefix = /usr/local
  42.  
  43. exec_prefix = $(prefix)
  44.  
  45. bindir =    $(exec_prefix)/bin
  46. libdir =    $(exec_prefix)/lib
  47.  
  48. datadir =    $(prefix)/lib
  49. mandir =    $(prefix)/man
  50. man1dir =    $(mandir)/man1
  51. man2dir =    $(mandir)/man2
  52. man3dir =    $(mandir)/man3
  53. man4dir =    $(mandir)/man4
  54. man5dir =    $(mandir)/man5
  55. man6dir =    $(mandir)/man6
  56. man7dir =    $(mandir)/man7
  57. man8dir =    $(mandir)/man8
  58. man9dir =    $(mandir)/man9
  59. infodir =    $(prefix)/info
  60. includedir =    $(prefix)/include
  61. docdir =    $(datadir)/doc
  62.  
  63. SHELL =        /bin/sh
  64.  
  65. INSTALL =    install -c
  66. INSTALL_PROGRAM = $(INSTALL)
  67. INSTALL_DATA =    $(INSTALL)
  68.  
  69. AR =        ar
  70. AR_FLAGS =    qv
  71. BISON =        bison
  72. MAKEINFO =    makeinfo
  73. RANLIB =    ranlib
  74. RM =        rm
  75.  
  76. TARGETLIB =    libmmalloc.a
  77.  
  78. MINUS_G =    -g -O
  79. CFLAGS =    $(MINUS_G) -I. -I$(srcdir)/../include $(HDEFINES)
  80.  
  81. CFILES =    mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
  82.         mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
  83.         keys.c sbrk-sup.c
  84.  
  85. HFILES =    mmalloc.h
  86.  
  87. OFILES =    mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
  88.         mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
  89.         keys.o sbrk-sup.o
  90.  
  91. #### Host, target, and site specific Makefile fragments come in here.
  92. # SUN OS 4.X has mmap(), so compile according.
  93. HDEFINES = -DHAVE_MMAP
  94. ###
  95.  
  96. # Do we want/need any config overrides?
  97. #     
  98.  
  99. STAGESTUFF =    $(TARGETLIB) *.o
  100.  
  101. all:        $(TARGETLIB)
  102.  
  103. info:
  104. clean-info:
  105. install-info:
  106. check:
  107.  
  108. install:    all
  109.         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
  110.         $(RANLIB) $(libdir)/$(TARGETLIB).n
  111.         mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
  112.  
  113. $(TARGETLIB):    $(OFILES)
  114.         $(RM) -rf $@
  115.         $(AR) $(AR_FLAGS) $@ $(OFILES)
  116.         $(RANLIB) $@
  117.  
  118. $(OFILES) :    $(HFILES)
  119.  
  120. .always.:
  121. # Do nothing.
  122.  
  123. .PHONEY: all etags tags ls clean stage1 stage2 .always.
  124.  
  125. stage1:        force
  126.         -mkdir stage1
  127.         -mv -f $(STAGESTUFF) stage1
  128.  
  129. stage2:        force
  130.         -mkdir stage2
  131.         -mv -f $(STAGESTUFF) stage2
  132.  
  133. stage3:        force
  134.         -mkdir stage3
  135.         -mv -f $(STAGESTUFF) stage3
  136.  
  137. stage4:        force
  138.         -mkdir stage4
  139.         -mv -f $(STAGESTUFF) stage4
  140.  
  141. against=stage2
  142.  
  143. comparison:    force
  144.         for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  145.  
  146. de-stage1:    force
  147.         -(cd stage1 ; mv -f * ..)
  148.         -rmdir stage1
  149.  
  150. de-stage2:    force
  151.         -(cd stage2 ; mv -f * ..)
  152.         -rmdir stage2
  153.  
  154. de-stage3:    force
  155.         -(cd stage3 ; mv -f * ..)
  156.         -rmdir stage3
  157.  
  158. de-stage4:    force
  159.         -(cd stage4 ; mv -f * ..)
  160.         -rmdir stage4
  161.  
  162. etags tags:    TAGS
  163.  
  164. TAGS:        $(CFILES)
  165.         etags $(HFILES) $(CFILES)
  166.  
  167. ls:
  168.         @echo Makefile $(HFILES) $(CFILES)
  169.  
  170. # Need to deal with profiled libraries, too.
  171.  
  172. clean:
  173.         rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors 
  174.  
  175. force:
  176.  
  177. Makefile:    $(srcdir)/Makefile.in $(host_makefile_frag) \
  178.         $(target_makefile_frag)
  179.         $(SHELL) ./config.status
  180.